package main

import "fmt"

type Usb interface {
	start()
	close()
}

type Phone struct {
	Name string
}

func (p Phone) start() {
	fmt.Println(p.Name, "start方法")
}

func (p Phone) close() {
	fmt.Println(p.Name, "close方法")
}

func main() {

	//var p = Phone{
	//	"dddddd",
	//}

	var p1 = &Phone{
		"bbbb",
	}

	var u Usb = p1

	u.start()

}
